import request from '@/utils/request'

// 项目备案列表
export function listProFiling(params) {
  return request({
    url: '/supervise/proRecordApi/list',
    method: 'post',
    params
  })
}

// 删除项目备案
export function deleteProFiling(id) {
  return request({
    url: '/supervise/proRecordApi/remove',
    method: 'post',
    params: { id }
  })
}

// 新增项目备案
export function addProFiling(data) {
  return request({
    url: '/supervise/proRecordApi/add',
    method: 'post',
    data: data
  })
}

// 更新项目备案
export function updateProFiling(data) {
  return request({
    url: '/supervise/proRecordApi/update',
    method: 'post',
    data: data
  })
}

// 项目备案详情
export function getProFilingById(id) {
  return request({
    url: '/supervise/proRecordApi/getProId/' + id
  })
}

